package com.example.waterme.ui

import androidx.lifecycle.ViewModel
import com.example.waterme.data.WaterRepository
import dagger.hilt.android.lifecycle.HiltViewModel
import javax.inject.Inject

@HiltViewModel
class PlantViewModel @Inject constructor(private val waterRepository: WaterRepository) : ViewModel() {
    fun applySchedule(interval: Int, plantName: String) {
        waterRepository.applySchedule(interval, plantName)
    }
}
